classdef scat_dev < handle
  % Generic 2-D scatter plot object: container for both the scatter data and its plot
  % Derived from handle
  % C-tor sig: sc = scat_dev(fig, X, Y, Z, G), all args required
  %     fig: the plot's parent figure
  %     X, Y, Z: the data
  %     G: instance of class globals_dev = container for RT global variables
  %
  % Author: David Goldsmith, Wash. State Dept. of Ecology, dgol461@ecy.wa.gov
  % Release date: < 9/15/2011
  
    properties (Constant)
    end
    
    properties
        parent_fig;
        X, Y; Z; axis; plot;
        XwNaNs; YwNaNs;
        xLimsWithOutliers; yLimsWithOutliers;
        xLimsSansOutliers; yLimsSansOutliers;
        G;
    end
    
    methods
        function sc = scat_dev(fig, X, Y, Z, G)
            sc.G = G;
            sc.parent_fig = fig;
            sc.X = X;
            sc.Y = Y;
            sc.Z = Z;
        end
        
        function scplot(obj, plotstr, position)
            obj.axis = axes('position', position);
            eval(plotstr);
            set(obj.axis, 'Tag', 'DataAxes')
            set(obj.plot, 'Tag', 'DataPlot')
        end
        
    end
    
end

